function useGenStyle(main,width, barSize) {
    let barStyle = {
        height: barSize
    }
    if (main) {
        barStyle.flex = 1;
    } else {
        barStyle.width = width
    }    
    const contentStyle = { width };
    contentStyle.height = barSize - 2;
    contentStyle.background = 'transparent'
    return {
        contentStyle,
        barStyle,
    }
}
export default useGenStyle;